package structure;

public class row extends group{
	
	private static final long serialVersionUID = -3807033954821372066L;

	public row(int id) { _id = id; }
	
    @Override
    public boolean intersects(group g) {
        if (g instanceof blk) {
            blk b = (blk)g;
            return _id / 3 == b.getC();
        } else if (g instanceof col) {
            return true;
        } else if (g instanceof row) {
            row r = (row)g;
            return _id == r.getID();
        } else {
            return super.intersects(g);
        }
    }

}
